﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace swaganomics.Metro.Dialogs
{
    public class MetroMessageBox
    {
        public static void Show(string title, string message)
        {
            ControlDialogs.MessageBox msgBox = new ControlDialogs.MessageBox(title, message);
            msgBox.Owner = Backend.Settings.homeWindow;
            msgBox.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            msgBox.ShowDialog();
        }

        public enum MessageBoxResults
        {
            OK,
            Yes,
            No,
            Cancel
        }
        public enum MessageBoxButtons
        {
            OK,
            OKCancel,
            YesNo,
            YesNoCancel
        }
        public static MessageBoxResults Show(string title, string message, MessageBoxButtons buttons)
        {
            ControlDialogs.MessageBoxOptions msgBox = new ControlDialogs.MessageBoxOptions(title, message, buttons);
            msgBox.Owner = Backend.Settings.homeWindow;
            msgBox.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            msgBox.ShowDialog();

            return Backend.TempStorage.msgBoxButtonStorage;
        }
    }
}